package com.koron.standard.defectStock.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.koron.standard.defectStock.bean.po.DefectStock;
import com.koron.standard.defectStock.bean.vo.DefectStockVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DefectStockMapper extends BaseMapper<DefectStock> {

    /**
     * 真查询，不管有没有被逻辑删除
     */
    DefectStock getRealById(String id);

    /**
     * num++
     */
    Integer incrementNum(String id);

    Page<DefectStockVo> selectPageVo(@Param("page") IPage<DefectStockVo> page, @Param(Constants.WRAPPER) Wrapper<DefectStock> queryWrapper);

    List<DefectStockVo> selectPageVo(@Param(Constants.WRAPPER) Wrapper<DefectStock> queryWrapper);

}